<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../template/adminTemp.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns="http://www.w3.org/1999/xhtml">
    <ui:define name="content">
        <section class="grid_6 first">
            <div class="columns">
                <div class="grid_6 first">
                    <h:form prependId="false" styleClass="form panel" id="form">
                        <fieldset>
                            <dl>
                               <dt></dt>
                                <dd><label>Semester name:</label>
                                    <p:inputText value="#{semesterManagedBean.semesterBean.semesterName}" />
                                </dd>
                                <dt></dt>
                                <dd><label>Curriculum name:</label>
                                    <h:selectOneMenu value="#{semesterManagedBean.semesterBean.curriculumId}">
                                        <f:selectItems value="#{curriculumManagedBean.all}" var="c" itemLabel="#{c.curriculumName}" itemValue="#{c.curriculumId}"/>
                                    </h:selectOneMenu>
                                </dd>
                                <dt></dt>
                                <dd><label>Remove:</label><h:selectBooleanCheckbox value="#{semesterManagedBean.semesterBean.isDelete}"/></dd>
                            </dl>
                        </fieldset>
                        <hr/>
                        <h:commandButton styleClass="button button-blue" style="margin-right: 7px" value="Submit" action="#{semesterManagedBean.update}"/>
                        <h:commandButton styleClass="button button-gray" value="Cancel" type="Reset"/>
                    </h:form>
                </div>
            </div>
        </section>
    </ui:define>
</ui:composition>
